﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace MyChart
{
    /// <summary>
    /// 表示进度条图表中的颜色段
    /// </summary>
    public class ColorRange
    {
        #region 字段

        private decimal _startValue = 0;
        private decimal _endValue = 0;
        private Color _color = new Color();
        private string _text = "";

        #endregion

        #region 属性

        /// <summary>
        /// 获取或设置颜色段的起始值
        /// </summary>
        public decimal StartValue
        {
            get { return _startValue; }
            set { _startValue = value; }
        }

        /// <summary>
        /// 获取或设置颜色段的结束值
        /// </summary>
        public decimal EndValue
        {
            get { return _endValue; }
            set
            {
                _endValue = value;
            }
        }

        /// <summary>
        /// 获取或设置颜色段的颜色
        /// </summary>
        public Color Color
        {
            get { return _color; }
            set { _color = value; }
        }

        /// <summary>
        /// 获取或设置颜色段的文本标签
        /// </summary>
        public string Text
        {
            get { return _text; }
            set { _text = value; }
        }

        #endregion
    }
}
